public class Test {

    String s1=new String("hehe");
    String s2=new String("haha");
    String s3=new String("hehe");
    String s4=s1;

    public static void main(String[] args) {
        Test t=new Test();
        System.out.println(t.s1.equals(t.s2));

        System.out.println(t.s1.equals(t.s4));

        System.out.println(t.s1.equals(t.s3));

        System.out.println(t.s1==t.s3);


    }



}
